﻿using ETModel;

namespace ETHotfix
{

    [Event(EventIdType.CreateRoleWnd)]
    public class CreateRoleWndUI: AEvent
    {
        public override void Run()
        {
            this.RunAsync().NoAwait();
        }
        
        public async ETVoid RunAsync()
        {
            FUIComponent fuiComponent = Game.Scene.GetComponent<FUIComponent>();
            // 使用工厂创建一个CreateRoleWnd UI
            FUI ui = await FUICreateRoleWndFactory.Create();
            fuiComponent.Add(ui);
        }
    }
}
